import React from 'react'
import App3child from '../src/components/App3child'
export default class App extends React.Component {
    constructor(props) {
        super(props)
        console.log('props',props)
        props.fn1()
        this.state = {
            content: ''
        }
    }

//  this.props.getMsg('6666666')
getchildmsg=(msg)=>{
    console.log('getchildmsg调用了')
    console.log(msg)
    this.setState({
        content:msg
    })
}


render() {
    return (
        <div>
        <h1>App3页面 ---{this.state.content}</h1>
        <App3child getMsg={this.getchildmsg}></App3child>
        </div>
        )

    }
}